Repository navigation
fix(storyteller): isolate Altar chat cooldown & scenario, fix Fallback scope/events, and clean dead code - #25
Merged
Merged
Conversation
…k scope/events, and clean dead code refactor: consolidate storyteller identities, policies, and localization Extract shared identity constants into StorytellerRequestIds (OwnerModId, ChatModId, ChatScenarioId, DefaultNpcId, IncidentOutputSchemaKey/Json) and replace scattered literals across agent, coordinator, notification, and UI. Split Altar chat onto its own StorytellerChat scenario and ChatModId so interactive turns bypass the incident MTB cooldown, and drop the IsStorytellerChat hint plumbing in favor of explicit scenario guards. Centralize tension deltas and fallback profiles in IncidentSelectionPolicy with a FallbackProfile/ChooseCategorySlot model, and restrict the fallback comp to Map_PlayerHome via XML and runtime target checks. Publish StorytellerStateChangedEvent from every memory mutation, add CancelCurrent so cancellations skip the failure backoff, and replace the autotest's destructive dialogue clear with a scoped removal. Route all UI and context text through RimMindAPI.Text.TrOr with English fallbacks, prefer the live difficultyDef label, and add contract tests covering schema registration, chat isolation, and zero raw .Translate(). Remove the unused PawnLookup helpers, ISkipCheck registration, and the in-csproj deploy target; rewrite deploy-single.ps1 for multi-version builds with runtime DLL exclusions and drop the redundant shell script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 full-codebase cleanup & Water-Dispenser refactor verified locally across 1.6 & 1.7 builds and full test suite.